<include file="Home@zh/Public/header" />
<div class="container" id="content">
<include file="Home@zh/Public/pathcrumb" />
    <div class="row">
      <div class="span2-8">
        <include file="Home@zh/Public/typenavbar" />
      </div>

      <!-- 正文列表 -->
      <div class="span8">
        <div class="type-content">
          <h3 class="widget-title"><strong>{$type.name}</strong></h3>
          <div class="article-content">
            <form  class="form-horizontal" role="form" action="/Home/leavemsg/save" >
            <br>
              <input type="hidden" name="inputId" value="0" > 
              <div class="form-group">
                <label for="inputNickname" class="col-sm-1 control-label">姓名</label>
                <div class="col-sm-6">
                  <input type="text" class="form-control" id="inputNickname" name="inputNickname" placeholder="请输入您的姓名" datatype="*2-12" errormsg="<i class='icon-warning-sign'></i> 姓名在2~12位之间"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" >
                </div>
                <div class="Validform_checktip">
                   <div class="Validform-info">姓名至少2个字符,最多12个字符<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
                </div>
              </div>
              <div class="form-group">
                <label for="inputEmail" class="col-sm-1 control-label">邮箱</label>
                <div class="col-sm-6">
                  <input type="text" class="form-control" id="inputEmail" name="inputEmail" placeholder="请输入您的邮箱" datatype="e" errormsg="<i class='icon-warning-sign'></i> 请输入正确的邮箱"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" >
                </div>
                <div class="Validform_checktip">
                   <div class="Validform-info">请输入正确的邮箱<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
                </div>
              </div>
              <div class="form-group">
                <label for="inputMsg" class="col-sm-1 control-label">内容</label>
                <div class="col-sm-6">
                  <textarea class="form-control" id="inputMsg" name="inputMsg" placeholder="请输入留言内容" datatype="*0-240" errormsg="<i class='icon-warning-sign'></i> 请输入留言内容"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" ></textarea>
                </div>
                <div class="Validform_checktip">
                   <div class="Validform-info">留言内容字数在0-240字<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
                </div>
              </div>
              <div class="form-group">
                <label for="inputYzm" class="col-sm-1 control-label">验证</label>
                  <div class="col-sm-2">
                      <img style="cursor:pointer" class="form-verify" title="点击刷新" src="{:U('/Plugin/Verify/verify/id/3')}" id='verifyImg' onClick='freshVerify()'/> 
                  </div>
                <div class="col-sm-4">
                  <input type="text" class="form-control" id="inputYzm" name="inputYzm" placeholder="请输入验证码" datatype="*2-6" errormsg="<i class='icon-warning-sign'></i> 请输入验证码"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" ajaxurl="/Plugin/Verify/validVerify?id=3">
                </div>
                <div class="Validform_checktip">
                   <div class="Validform-info">请输入验证码<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
                </div>
              </div>
         
          
              <div class="form-group">
                <label for="inputName" class="col-sm-1 control-label"></label>
                <div class="col-sm-6">
                     <input type="button" class="btn btn-default" value="提交" id="btn_sub"/>
                </div>
              </div>
            </form>
          </div>  
        </div>  
      </div>  

    </div>

</div>

<script src="__PUBLIC__/validform/js/validform_v5.3.2_min.js"></script>
<script src="__PUBLIC__/validform/js/validform.all.js"></script>
<script type="text/javascript">
  function freshVerify() {  
    var verifyImg = $('#verifyImg');  
    var verifyImg_src = verifyImg.attr("src");  
    if( verifyImg_src.indexOf('?')>0){  
        verifyImg.attr("src", verifyImg_src+'&random='+Math.random());  
    }else{  
        verifyImg.attr("src", verifyImg_src.replace(/\?.*$/,'')+'?'+Math.random());  
    }  
  }  
</script> 
<include file="Home@zh/Public/footer"/>
